package com.mrd.frame.domain;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

/**
 * 异步通知对象
 * @author han
 */
public class NoticeMessage implements Serializable{
	
	public String orderId;
	public String time_end;
	public String transaction_id;
	public String outTradeNo;
	public String total_fee;
	public String status;
	public String userKey;
	public String notifyUrl;
	
	public NoticeMessage() {
		
	}
	
	public NoticeMessage(String orderId,String time_end,String transaction_id,String outTradeNo,
			String total_fee,String status,String userKey,String notifyUrl){
		this.orderId = orderId;
		this.time_end = time_end;
		this.transaction_id = transaction_id;
		this.outTradeNo = outTradeNo;
		this.total_fee = total_fee;
		this.status = status;
		this.userKey = userKey;
		this.notifyUrl = notifyUrl;
	}
	
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getTime_end() {
		return time_end;
	}
	public void setTime_end(String time_end) {
		this.time_end = time_end;
	}
	public String getTransaction_id() {
		return transaction_id;
	}
	public void setTransaction_id(String transaction_id) {
		this.transaction_id = transaction_id;
	}
	public String getOutTradeNo() {
		return outTradeNo;
	}
	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}
	public String getTotal_fee() {
		return total_fee;
	}
	public void setTotal_fee(String total_fee) {
		this.total_fee = total_fee;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getUserKey() {
		return userKey;
	}
	public void setUserKey(String userKey) {
		this.userKey = userKey;
	}
	public String getNotifyUrl() {
		return notifyUrl;
	}
	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
	
	public JSONObject noticeMessageToJson(){
		JSONObject object = new JSONObject();
		object.put("orderId", orderId);
		object.put("time_end", time_end);
		object.put("transaction_id", transaction_id);
		object.put("outTradeNo", outTradeNo);
		object.put("total_fee", total_fee);
		object.put("time_end", time_end);
		object.put("status", status);
		object.put("userKey", userKey);
		object.put("notifyUrl", notifyUrl);
		return object;
	}
}
